package com.hongxun.design.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zerdoor_pc on 2016/7/13.
 */
public class CitysBean {
    private int cityId;
    private String cityType = "";
    private boolean display = false;
    private String cityName = "";
    private String citySize = "";
    private int cityCode;
    private int valueCode = 0;

    private List<CitysBean> childs = new ArrayList<>();


    public CitysBean(int cityId, String cityType, boolean display, String cityName, String citySize, int cityCode, int valueCode) {
        this.cityId = cityId;
        this.display = display;
        this.cityType = cityType;
        this.cityName = cityName;
        this.citySize = citySize;
        this.cityCode = cityCode;
        this.valueCode = valueCode;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public String getCityType() {
        return cityType;
    }

    public void setCityType(String cityType) {
        this.cityType = cityType;
    }

    public boolean isDisplay() {
        return display;
    }

    public void setDisplay(boolean display) {
        this.display = display;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCitySize() {
        return citySize;
    }

    public void setCitySize(String citySize) {
        this.citySize = citySize;
    }

    public int getCityCode() {
        return cityCode;
    }

    public void setCityCode(int cityCode) {
        this.cityCode = cityCode;
    }

    public int getValueCode() {
        return valueCode;
    }

    public void setValueCode(int valueCode) {
        this.valueCode = valueCode;
    }

    public List<CitysBean> getChilds() {
        return childs;
    }

    public void setChilds(List<CitysBean> childs) {
        this.childs.clear();
        this.childs.addAll(childs);
    }

    public void setChild(CitysBean child) {
        this.childs.add(child);
    }
}
